<?php
/**
 * render all block belongs to region
 * @property string $region
 * @author Tuong Tran <tuong.tran@outlook.com>
 */
class WBlockList extends CWidget{
    public $region;
    public function run(){
        $models = Block::model()->findByAll(array(
            'condition' => "`type` = '{$this->region}'",
            'order' => '`order`'
        ));
    }
}